package com.aracky.common.util;

import java.util.List;

/**
 * @Author zengzhiping
 * @BelongsPackage com.aracky.common.util
 * @CreateTime 2022-08-03
 * @Description
 */
public class ComUtil {
    /**
     * 判断集合是否是空集合
     *
     * @param list
     * @return
     */
    public static Boolean isNullList(List list) {
        if (list == null || list.isEmpty()) {
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }

    /**
     * 判断集合是否是不空集合
     * @param list
     * @return
     */
    public static Boolean isNotNullList(List list) {
        if (list != null && !list.isEmpty()) {
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }
}
